<template>
  <div class="custom-body">
    <el-form ref="rowForm" :model="from" label-width="120px">
      <el-row :gutter="20" />
    </el-form>
  </div>
</template>
<script>
const defaultForm = { title: '', url: '', sqr: '', sqrgh: '', userid: '', blrxm: '', oldId: '', times: '' };
export default {
  name: 'Db',
  props: {
    type: String,
    data: String
  },
  data() {
    return {
      from: defaultForm
    };
  },
  watch: {
    type: {
      handler(newData, oldData) {
        if (undefined !== newData) {

        }
      },
      immediate: true, // 父组件第一次传值时，执行handler，false则第一次不执行
      deep: false // formType为对象时，设置为true，此属性监听对象发生变化
    }
  }
};
</script>

<style scoped>
.custom-body {
  width: 100%;
  padding: 0px 10px;
  box-sizing: border-box;
}
</style>
